$OpenBSD: patch-main_php_open_temporary_file_c,v 1.1 2014/11/15 13:43:01 robert Exp $
--- main/php_open_temporary_file.c.orig.port	Wed Nov 12 14:52:21 2014
+++ main/php_open_temporary_file.c	Sat Nov 15 10:45:12 2014
@@ -138,7 +138,7 @@ static int php_do_open_temporary_file(const char *path
 		trailing_slash = "/";
 	}
 
-	if (spprintf(&opened_path, 0, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
+	if (spprintf(&opened_path, 0, "%s%s%sXXXXXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
 		efree(opened_path);
 		efree(new_state.cwd);
 		return -1;
